package com.fh.controller;

import com.fh.service.UserLoginService;
import com.fh.vo.ResultVo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("userlogin")
@CrossOrigin
public class UserLoginController {

    @Resource
    private UserLoginService userLoginService;


    @GetMapping("login")
    public ResultVo login(@RequestParam("username") String
                                  username,
                          @RequestParam(value ="password") String userPwd ){

        return  userLoginService.login(username,userPwd);
    }
}
